package com.tasly.score.core;

import com.tasly.score.core.api.ScoreService;
import com.tasly.score.remote.UserServerRemote;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: ScoreServiceImpl （远程）
 * @Author: sunpengpeng
 * @Date: Create in 18/1/9 16:32
 * @Modified By:
 */
@RestController
public class ScoreServiceImpl implements ScoreService {


//    @Autowired
//    private UserService userService;

    @Autowired
    private UserServerRemote userServiceRemote;

    @Override
    public String getScore(@PathVariable("uid") Long uid) {
        return userServiceRemote.get(uid).toString();
    }
}
